package com.zpark.service.impl;

import com.zpark.dao.IAccountDao;
import com.zpark.pojo.Account;
import com.zpark.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

/**
 * 业务层实现类
 */
@Service("accountService")
public class AccountServiceImpl implements IAccountService {

    @Autowired
    private IAccountDao accountDao;

    @Override
    public List<Account> all() throws SQLException {
        return accountDao.finAll();
    }
}
